home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Direct Draw 4.xpl < prev    next >
Text File  |  2003-11-19  |  2KB  |  57 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Program Options\Built in Windows Apps\DirectX"
  5. "NAME"="Direct Draw 4"
  6. "VERSION"="1.04"
  7. "OSVERSION"="1011111"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="DisableDP2"
  10. "TEXT 2"="SoftwareOnly"
  11. "DESCRIPTION 1"="Enables [Cleared Box] or disables [Checked Box] enhanced DirectX 6/7 3D features on ALL PCI/AGP 3D video accelerators. It is strongly recommended to keep this setting enabled for maximum performance in Direct3D apps/games."
  12. "DESCRIPTION 2"="Enables [Cleared Box] or disables [Checked Box] the use of Hardware Acceleration on ALL PCI/AGP 3D video cards. It is strongly recommended to enable this feature for optimal performance."
  13. "AUTHOR"="Ojatex@aol.com"
  14. "CONTACTURL"="http://members.aol.com/ojatex/"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="These tweaks for Direct Draw courtesy of Axcel216@aol.com. See http://users.aol.com/axcel216/newtip18.htm#DXTWK."
  18.  
  19. Sub Plugin_Initialize 
  20.  i=RegReadValue("HKLM\Software\Microsoft\Direct3D\DisableDP2")
  21.  if i=1 then SetUIElement 1,true
  22.  
  23.  i=RegReadValue("HKLM\Software\Microsoft\Direct3D\Drivers\SoftwareOnly")
  24.  if i=1 then SetUIElement 2,true
  25. End Sub
  26.  
  27.  
  28. Sub Plugin_CheckData(ElementIndex)
  29. End Sub
  30.  
  31.  
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  b=GetUIElement(1)
  35.  if b=true then
  36.   Call RegWriteValue("HKLM\Software\Microsoft\Direct3D\DisableDP2","1",2)
  37.  else
  38.   Call RegWriteValue("HKLM\Software\Microsoft\Direct3D\DisableDP2","0",2)
  39.  end if
  40.  
  41. b=GetUIElement(2)
  42.  if b=true then
  43.   Call RegWriteValue("HKLM\Software\Microsoft\Direct3D\Drivers\SoftwareOnly","1",2)
  44.  else
  45.   Call RegWriteValue("HKLM\Software\Microsoft\Direct3D\Drivers\SoftwareOnly","0",2)
  46.  end if
  47.  
  48.  
  49. End Sub
  50.  
  51.  
  52. Sub Plugin_Terminate 
  53. End Sub
  54.  
  55.  
  56.  
  57.